From 711eb24cb0b8c03bc43edffd082e91d970fc3dc9 Mon Sep 17 00:00:00 2001
From: Furkan Sahin <furkan-dev@proton.me>
Date: Wed, 21 Jul 2021 04:42:31 -0500
Subject: Added a timestamp and sorts posts by timestamp

---
 pages/logs/[directory].tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'pages/logs/[directory].tsx')

diff --git a/pages/logs/[directory].tsx b/pages/logs/[directory].tsx
index 00fe78d..c3760f7 100644
--- a/pages/logs/[directory].tsx
+++ b/pages/logs/[directory].tsx
@@ -1,4 +1,3 @@
-import path from 'path';
 import { GetStaticProps, GetStaticPropsContext } from 'next';
 import React, { FC } from 'react';
 import { getPosts, getMarkdown, Post, getPostFromDirectory } from '../../utils/Posts';
@@ -11,10 +10,13 @@ interface Props {
 }
 
 const Page : FC<Props> = ({ post, markdown }) => {
+    const { lastUpdated } = post.meta;
+
     return (
       <>
         <DefaultPage
           path={"/logs/" + post.directory}
+          lastUpdated={lastUpdated}
         >
         <Markdown
           md={markdown}
-- 
cgit v1.2.3

